# 请写一个程序，将昨天算出的乘法口诀，保存在为一个txt文件

with open('qinchuanting.txt', 'w') as w:
    for i in range(1, 10):
        for j in range(1, 10):
            if j <= i:
                w.write(str(j) + "*" + str(i) + "=" + str(i * j) + " ")
        w.write("\n")